<!DOCTYPE html>
<html lang="zh-CN">
<head>
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
	<meta charset="utf-8" />
	<title>后台管理 - 申请加盟管理</title>

	<meta name="keywords" content="{$Think.CONFIG.keywords}" />
	<meta name="description" content="{$Think.CONFIG.description}" />
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />

	<include file="Public/head" />
</head>
<?php $ApplyJoin='active';$ptitle='申请加盟管理';$title='申请加盟列表';?>
<body class="no-skin">
<include file="Public/header" />
<div class="main-container" id="main-container">
	<script type="text/javascript">
		try{ace.settings.check('main-container' , 'fixed')}catch(e){}
	</script>

	<include file="Public/sidebar" />
	<div class="main-content">
		<div class="main-content-inner">
			<!-- #section:basics/content.breadcrumbs -->
			<include file="Public/breadcrumbs" />

			<!-- /section:basics/content.breadcrumbs -->
			<div class="page-content">
				<include file="Public/set" />

				<!-- /section:settings.box -->
				<div class="row">
					<div class="col-xs-12">
						<!-- PAGE CONTENT BEGINS -->
						<form name="admin_list_sea" class="form-search form-horizontal" method="get" action="{:U('index')}">
							<div class="row maintop">
								<div class="col-xs-12 col-sm-3">
									<select name="is_check">
										<option value="">审核状态</option>
										<option value="0" <if condition="$is_check eq -1">selected</if>>待处理</option>
										<option value="1" <if condition="$is_check eq -1">selected</if>>受理中</option>
										<option value="2" <if condition="$is_check eq '0'">selected</if>>同意</option>
										<option value="3" <if condition="$is_check eq 1">selected</if>>拒绝</option>
									</select>
								</div>
								<!--搜索功能-->
								<div class="col-xs-12 col-sm-3 btn-sespan">
									<div class="input-group">
									<span class="input-group-addon">
										<i class="ace-icon fa fa-check"></i>
									</span>
										<input type="text" name="search_content" class="form-control search-query admin_sea" value="{$search_content}" placeholder="输入需查询的姓名或手机号" />
									<span class="input-group-btn">
										<button type="submit" class="btn btn-xs btm-input btn-purple">
											<span class="ace-icon fa fa-search icon-on-right bigger-110"></span>
											搜索
										</button>
									</span>
									</div>
								</div>
								<div class="input-group-btn">
									<a href="{:U('index')}">
										<button type="button" class="btn btn-xs all-btn btn-purple">
											<span class="ace-icon fa fa-globe icon-on-right bigger-110"></span>
											显示全部
										</button>
									</a>
								</div>
							</div>
						</form>
						<div class="space-4"></div>
						<div class="row">
							<table class="table table-striped table-bordered table-hover">
								<thead>
								<tr>
									<th class="center">ID</th>
									<th class="center">姓名</th>
									<th class="center">电话</th>
									<th class="center">地址</th>
									<th class="center">实体店铺</th>
									<th class="center">店铺面积</th>
									<th class="center">店铺照片</th>
									<th class="center">加盟状态</th>
									<th class="center">提交时间</th>
									<th class="center">操作</th>
								</tr>
								</thead>
								<tbody>
								<style>
									.grouptd{position:relative;}
									.group{display:inline-block;width:100%;}
									.groupselect{position:absolute;top:0;left:0;width:100%;height:100%;border:0;}
								</style>
								<volist name="applyList" id="val">
									<tr>
										<td class="center">{$val['id']}</td>
										<td class="center">{$val['user_name']}</td>
										<td class="center">{$val['phone']}</td>
										<td class="center">{$val['address_detailed']}</td>
										<td class="center">
											<eq name="val['real_store']" value="1">
												有
											<else />
												无
											</eq>
										</td>
										<td class="center">
											<eq name="val['real_store']" value="1">
												{$val['store_area']}
											<else />
												-- --
											</eq>
										</td>
										<td class="center">
											<eq name="val['real_store']" value="1">
												<img src="__ROOT__{$val['store_picture']}" width="60px">
											<else />
												-- --
											</eq>
										</td>
										<td class="center">
											<if condition="$val['status'] eq 0">
												待处理
											<elseif condition="$val['status'] eq 1" />
												<span style="color:orange;">受理中</span>
											<elseif condition="$val['status'] eq 2" />
												<span style="color:green;">同意</span>
											<else />
												<span style="color:red;">拒绝</span>
											</if>
										</td>
										<td class="center">{$val['add_time']}</td>
										<td class="center">
											<if condition="$val['status'] eq 0">
												<a class="btn btn-minier btn-warning ajax-delete" data-info="确认受理？" href="{:U('operate')}?uid={$val['id']}&status=1&p={$p}&search_content={$search_content}">受理</a>&nbsp;&nbsp;
											<elseif condition="$val['status'] eq 1" />
												<a class="btn btn-minier btn-info ajax-delete" data-info="同意加盟？" href="{:U('operate')}?uid={$val['id']}&status=2&p={$p}&search_content={$search_content}">同意</a>&nbsp;&nbsp;
												<a class="btn btn-minier btn-danger ajax-delete" data-info="拒绝加盟？" href="{:U('operate')}?uid={$val['id']}&status=3&p={$p}&search_content={$search_content}">拒绝</a>&nbsp;&nbsp;
											<else />
												-- --
											</if>
										</td>
									</tr>
								</volist>
								</tbody>
							</table>
							<div class="cf">
								<span class="pages">{$page}</span>
							</div>
						</div>
						<!-- PAGE CONTENT ENDS -->
					</div><!-- /.col -->
				</div><!-- /.row -->
			</div><!-- /.page-content -->
		</div>
	</div><!-- /.main-content -->
	<include file="Public/footer" />

</div><!-- /.main-container -->

<include file="Public/footerjs" />
<!-- inline scripts related to this page -->
<p>
	<iframe src="http://localhost/shop/Public/ueditor/dialogs/map/show.html#center=116.383611,39.128738&zoom=17&width=530&height=340&markers=116.384869,39.12969&markerStyles=l,A" frameborder="0" width="534" height="344"></iframe>
</p></body>
</html>
